import Vue from 'vue';
import Router from 'vue-router';
import goods from '../components/goods/goods.vue';
import ratings from '../components/ratings/ratings.vue';
import seller from '../components/seller/seller.vue';
import VueResouce from 'vue-resource';


Vue.use(Router);
Vue.use(VueResouce);

export default new Router({
	routes: [{
		path: '/goods',
		name: 'goods',
		component: goods

	}, {
		path: '/ratings',
		name: 'ratings',
		component: ratings
	}, {
		path: '/seller',
		name: 'seller',
		component: seller
	},{
        path: '/',    
        redirect: '/goods',
        component: goods
    }
    ],
    linkActiveClass: 'active'
});
